<%--
  Created by IntelliJ IDEA.
  User: 11473
  Date: 2019/9/28
  Time: 19:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>查看用户</title>
    <!-- Bootstrap -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="/static/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="/static/js/bootstrap.min.js"></script>
</head>
<body>
<div style="height: 150px; margin-left: 20%; margin-right: 20%;"></div>
<div style="margin-left: 20%; margin-right: 20%; height: 300px;">

    <table class="table table-striped">
        <tr>
            <td>id</td>
            <td>姓名</td>
            <td>密码</td>
            <td>年龄</td>
            <td>家庭地址</td>
            <td>注册日期</td>
        </tr>
        <c:forEach items="${user}" var="u">
            <tr>
                <td>${u.userId}</td>
                <td>${u.userName}</td>
                <td>${u.userPsw}</td>
                <td>${u.userAge}</td>
                <td>${u.userAddress}</td>
                <td>${u.userRegDate}</td>
            </tr>
        </c:forEach>
    </table>
</div>
<div  style="margin-left: 20%; margin-right: 20%; text-align: center;">

    <div>
        <nav aria-label="Page navigation">
            <ul class="pagination pagination-lg">
                <li>
                    <a href="#" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                </li>
                <li><a href="/page?pageIndex=1&pageSize=5">1</a></li>
                <li><a href="/page?pageIndex=2&pageSize=5">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li>
                    <a href="#" aria-label="Next">
                        <span aria-hidden="true">&raquo;</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>

</div>




</body>
</html>
